namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class BlogTagMap : ClassMap<BlogTagDataModel>
    {
        #region Constructors and Destructors

        public BlogTagMap()
        {
            this.Table("BlogTag");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Assigned().Column("Id");
            this.Map(x => x.Name).Not.Nullable().Column("Name");
            this.Map(x => x.CultureCode).Not.Nullable().Column("CultureCode");
            //this.References(x => x.Culture).Column("CultureCode");
            //this.HasMany(x => x.ArticleCultures);
        }

        #endregion
    }
}